<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_my_profile" ValidateRequest="false" CodeFile="view_my_profile.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr>
			<td class="welcome_white" colspan="3" id="table_orange" height="22"><span class="break_name"><b><asp:Label id="lblWelcome" runat="server">Welcome</asp:Label>
				<%=Name%>
			</b>!</span></td>
		</tr>
		<tr>
			<td class="small" vAlign="top" width="340">
				<!-- User profile -->
				<table class="main_table_border_transparent" cellSpacing="1" cellPadding="0" width="100%"
					border="0">
					<tr>
						<td class="small" vAlign="top" align="center">
							<table cellSpacing="0" cellPadding="0" width="310" border="0">
								<tr>
									<td class="small" vAlign="top" height="7">&nbsp;</td>
								</tr>
								
								<tr>
									<td class="profile" vAlign="middle" align="left"><br>
										<span class="profile">
											<asp:hyperlink id="hlMessages" runat="server" NavigateUrl="../messages_inbox.aspx" CssClass="profile"></asp:hyperlink>
										</span><asp:hyperlink id="hlEditProfile" runat="server" NavigateUrl="../user_profile.aspx" CssClass="profile">Edit Profile</asp:hyperlink><br>
										<asp:hyperlink id="hlEditPhoto" runat="server" NavigateUrl="../upload_photo.aspx" CssClass="profile">Edit Photo</asp:hyperlink><br>
										<asp:hyperlink id="hlEditFriends" runat="server" CssClass="profile"> Edit Friends</asp:hyperlink><br>
										<asp:hyperlink id="hlEditFriendsComments" runat="server" CssClass="profile">Edit Friends Comments</asp:hyperlink><br>
										<br>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<!-- End User profile --><br>
				<br>
				<br>
				<br>
				<br>
				<!-- Upload Photo  -->
				<table class="main_table_border_transparent" cellSpacing="1" cellPadding="0" width="340" border="0">
					<tr>
						<td class="small2" align="center"><br>
							<table cellSpacing="0" cellPadding="4" width="310" border="0">
								<tr>
									<td class="menu_white" align="left" width="120"><asp:image id="imgPhoto" runat="server" CssClass="small_image"></asp:image></td>
									<td class="profile" align="left"><asp:hyperlink id="hlEditPhoto2" runat="server" NavigateUrl="../upload_photo.aspx" Font-Bold="True">Edit Photo</asp:hyperlink></td>
								</tr>
								<tr>
									<td class="clear" align="left" width="120"><asp:hyperlink id="hlPhotosInAlbum" runat="server" Font-Bold="True"></asp:hyperlink></td>
									<td class="blue" align="left">&nbsp;</td>
								</tr>
							</table>
							<br>
						</td>
					</tr>
				</table>
				<!-- End Upload Photo  --><br>
				<br>
				<br>
				<br>
				<br>
				<table class="main_table_border_transparent" cellSpacing="1" cellPadding="0" width="340"
					border="0">
					<tr>
						<td align="center" class="small">
							<table cellSpacing="0" cellPadding="0" width="310" border="0">
								<tr>
									<td class="small" height="7">&nbsp;</td>
								</tr>
								<!-- User Inbox  -->
								<tr>
									<td class="menu_white" id="table_orange" align="left" height="21"><b><asp:Label id="lblMyDetails" runat="server">My Details</asp:Label></b></td>
									<td class="sign_up" id="table_orange" align="right" height="21"><asp:hyperlink id="hlEditDetails" runat="server" NavigateUrl="../user_profile.aspx">Edit details</asp:hyperlink>&nbsp;&nbsp;
									</td>
								</tr>
								<tr>
									<td colSpan="2"><asp:table id="tblUserDetails" runat="server" CssClass="bordered_table" CellSpacing="0" CellPadding="4"
											Width="310px"></asp:table></td>
								</tr>
							</table>
							<br>
						</td>
					</tr>
				</table>
			</td>
			<td class="small" width="10">&nbsp;</td>
			<td class="small" vAlign="top" width="419">
				<table class="main_table_border_transparent" cellSpacing="1" cellPadding="0" width="419"
					border="0">
					<tr>
						<td class="small" height="7">&nbsp;</td>
					</tr>
					<tr>
						<td class="small" align="center">
							<table cellSpacing="0" cellPadding="0" width="389" border="0">
								<tr>
									<td class="main_table_border_transparent">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
											<tr>
												<td class="menu_white" id="table_orange" align="left" height="21"><b><asp:Label id="lblMe" runat="server">Me</asp:Label></b></td>
											</tr>
											<tr>
												<td class="blue_clear_height" valign="top"><asp:label id="lblAboutMe" runat="server" CssClass="blue_bulletin"></asp:label>
													<pre wrap style="WORD-WRAP:break-word"><asp:label id="lblAboutMeValue" runat="server"  ></asp:label></pre>
													<asp:label id="lblMeet" runat="server" CssClass="blue_bulletin"></asp:label>
													<pre wrap style="WORD-WRAP:break-word"><asp:label id="lblMeetValue" runat="server" ></asp:label></pre>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td class="small" height="7">&nbsp;</td>
								</tr>
								<tr id="trSongs" runat="server">
									<td class="main_table_border_transparent">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
											<tr>
												<td class="menu_white" id="table_orange" align="left" height="21"><b><asp:Label id="lblLive" runat="server">Live</asp:Label></b> <IMG src="images/both.gif" align="center" alt="Live"></td>
											</tr>
											<tr>
												<td><font class="small2"><br></font>
													<asp:hyperlink id="hlSongName1" runat="server"></asp:hyperlink>
													<asp:hyperlink id="hlSongName2" runat="server"></asp:hyperlink>
													<asp:HyperLink id="hlSongName3" runat="server"></asp:HyperLink>
													<font class="small2">
														<br>
														<br>
													</font>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td class="small" vAlign="top" align="center">
							<table cellSpacing="0" cellPadding="0" width="389" border="0">
								<tr>
									<td class="small" height="7">&nbsp;</td>
								</tr>
								<tr>
									<td class="menu_white" id="table_orange" height="21"><b>My <font class="dynamic_number">
												<%=sFriendsCount%>
											</font><asp:Label id="lblFriends" runat="server">Friends</asp:Label>&nbsp;&nbsp;</b></td>
								</tr>
								<tr>
									<td class="inbox" align="right">
										<table cellSpacing="0" cellPadding="0" width="100%" border="0">
											<tr>
												<td class="small_paragraph_orange" align="left"><b><asp:hyperlink id="hlSeeAllFriends" cssclass="all_friends" runat="server" NavigateUrl="../see_all_friends.aspx">See all friends</asp:hyperlink></b></td>
												<td class="small_paragraph_orange" vAlign="middle" align="right"><asp:hyperlink id="hlViewConfirmation" runat="server" Visible="False">
														<b>View awaiting confirmation from <font class="all_friends">2</font> friends</b></asp:hyperlink><b></b></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td class="blue_inbox" align="center"><asp:datalist id="dlAllFriends" runat="server" CssClass="data_list" CellPadding="0" Width="100%"
											RepeatColumns="4" HorizontalAlign="Left" BorderWidth="0px" ShowHeader="False" ShowFooter="False" RepeatDirection="Horizontal">
											<ItemStyle HorizontalAlign="Center" VerticalAlign="Top" width="25%"></ItemStyle>
											<ItemTemplate>
												<table cellspacing="0" cellpadding="0" border="0">
													<tr>
														<td class="blue " align="center" style="padding-left: 0px;">
															<b>
																<asp:LinkButton id="lbName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' >
																</asp:LinkButton></b>
														</td>
													</tr>
													<tr>
														<td align="center" height="100" valign="top">
															<asp:imagebutton id="imgFriend" runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>'>
															</asp:imagebutton><br>
															<asp:image id="imgOnline" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>' >
															</asp:image>
														</td>
													</tr>
												</table>
											</ItemTemplate>
										</asp:datalist></td>
								</tr>
								<tr>
									<td class="small" align="center">
										<table cellSpacing="0" cellPadding="0" width="389" border="0">
											<tr>
												<td class="spacer_line" colSpan="2"><IMG height="1" src="images/spacer.gif" width="100%"></td>
											</tr>
											<tr>
												<td class="blue_bulletin" align="left">&nbsp;</td>
												<td vAlign="top" align="right"><asp:image id="imgAddFriends" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/add_friends.gif"></asp:image><asp:linkbutton id="lbAddFriends" runat="server" CssClass="hyper_button" onclick="lbAddFriends_Click">Add Friends</asp:linkbutton>&nbsp;&nbsp;&nbsp;<asp:image id="imgEditFriends" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/edit_friends.gif"></asp:image><asp:linkbutton id="lbEditFriendsWithImage" runat="server" CssClass="hyper_button" onclick="lbEditFriendsWithImage_Click">Edit Friends</asp:linkbutton></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<br>
				<br>
				<br>
				<br>
				<br>
				<table class="main_table_border_transparent" cellSpacing="1" cellPadding="0" width="419"
					border="0">
					<tr>
						<td class="small" vAlign="top" align="center">
							<table cellSpacing="0" cellPadding="0" width="389" border="0">
								<TBODY>
									<tr>
										<td class="small" height="7">&nbsp;</td>
									</tr>
									<tr>
										<td class="menu_white" id="table_orange"><b><asp:Label id="lblFriendsComments" runat="server">My Friends Comments</asp:Label></b></td>
										<td class="sign_up" id="table_orange" align="right" height="19"><asp:hyperlink id="hlEditComments" runat="server">Edit Comments</asp:hyperlink>&nbsp;</td>
									</tr>
									<tr>
										<td class="all_friends" colspan="2" align="right"><asp:hyperlink id="hlViewMoreComments" cssclass="all_friends" runat="server">View more comments</asp:hyperlink></td>
									</tr>
									<tr>
										<td class="blue_inbox" align="left" colSpan="2"><asp:label id="lblNoComments" runat="server" CssClass="clear" Visible="False">There are no comments posted.</asp:label><ASP:DATAGRID id="dgMessages" runat="server" Width="100%" AutoGenerateColumns="False" GridLines="None"
												PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right">
												<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
												<Columns>
													<asp:TemplateColumn>
														<HeaderStyle Width="25%"></HeaderStyle>
														<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
														<ItemTemplate>
															<br>
															<asp:hyperlink id=hlSenderImage runat="server" CssClass="small_image" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' ImageUrl='<%# DataBinder.Eval(Container.DataItem, "SenderImageURL") %>'>Image</asp:hyperlink>
															<br>
															<asp:image id="imgOnline2" runat="server" imageurl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>' >
															</asp:image>
															<br>
														</ItemTemplate>
														<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
													</asp:TemplateColumn>
													<asp:TemplateColumn>
														<HeaderStyle Width="75%"></HeaderStyle>
														<ItemStyle CssClass="data_grid" VerticalAlign="Top"></ItemStyle>
														<ItemTemplate>
																														<br>
<asp:hyperlink id=hlSenderName runat="server" CssClass="blue_clear" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'>
															</asp:hyperlink>&nbsp;&nbsp; 
<asp:label id=lblDate CssClass="blue_bulletin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>'>
															</asp:label><br><br>
															<PRE WRAP STYLE="word-wrap:break-word;">
<asp:literal id=litComment runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Comment") %>'></asp:literal></PRE>
															<asp:linkbutton id=lbReject runat="server" CssClass="blue_clear" Font-Bold="True" Visible='<%# DataBinder.Eval(Container.DataItem, "ButtonsVisibility") %>' CommandName="Reject" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommentID") %>' CausesValidation="False">
																						Reject</asp:linkbutton>&nbsp; 
<asp:linkbutton id=lbApprove runat="server" Font-Bold="True" Visible='<%# DataBinder.Eval(Container.DataItem, "ButtonsVisibility") %>' CommandName="Approve" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CommentID") %>' CausesValidation="False">
																						Approve</asp:linkbutton>
										</ItemTemplate>
										<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
										</asp:TemplateColumn> </Columns>
										<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
							</ASP:DATAGRID></td>
					</tr></TBODY>
				</table>
			</td>
		</tr>
	</table>
	</td></tr>
	<tr>
		<td class="small" colSpan="3" height="10">&nbsp;</td>
	</tr>
	</table></form>
